/*
 * BanBu_PersonMusicPlay
 * @description 本文件提供语音播放功能
 * @package
 * @author 		***
 * @copyright
 * @version 		1.0
 * @description 本文件提供语音播放功能
 */

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@class BanBu_PersonMusicPlay;
@protocol MusicPlayDelegate <NSObject>
-(void)musicDidStartPlay:(BanBu_PersonMusicPlay *)_player;
-(void)musicDidEndPlay:(BanBu_PersonMusicPlay *)_player;

@end
@interface BanBu_PersonMusicPlay : NSObject <AVAudioPlayerDelegate>
{
    BOOL pausing;
}

@property (nonatomic, retain) AVAudioPlayer *audioPlayer;
@property (nonatomic, copy) NSString *loadUrl;
@property (nonatomic, assign)id<MusicPlayDelegate> delegate;
+(BanBu_PersonMusicPlay *)sharePlayer;
- (void)startPlay;
- (BOOL)playing;
- (BOOL)isPause;
- (void)pause;
- (void)resume;
- (void)stop;
- (void)destoryPlay;
@end
